import Types from "./types";

const defaultState = {
    theme: "blue"
};
export default function onAction(state = defaultState, action) {
    switch (action.type) {
        case Types.THEM_CHANGE:
            return {
                ...state,
                theme: action.theme
            };
        default:
            return state;
    }
}